package com.cloud.tsp.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cloud.api.domain.screen.ModelMileage;
import com.cloud.api.domain.screen.VehicleStatistics;
import com.cloud.api.domain.tsp.VehicleMileage;
import org.apache.ibatis.annotations.Param;


import java.util.List;

/**
 * <p>
 * 计算每辆车的行驶里程 Mapper 接口
 * </p>
 *
 * @author
 * @since 2024-02-01
 */
@DS("doris")
public interface VehicleMileageMapper extends BaseMapper<VehicleMileage> {

    List<VehicleMileage> getVehicleMileage();

    List<com.cloud.api.domain.screen.VehicleMileage> getVehicleTop();

    List<ModelMileage> getModelTop();

    List<VehicleStatistics> getTitleStatistics(@Param("dataSource")String dataSource);

    VehicleStatistics getTotalStatistics();

}